package com.guigusuqi.hy.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 积分规则管理(IntegralDetail)实体类
 *
 * @author makejava
 * @since 2022-04-04 18:30:57
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("hy_integral_detail")
public class IntegralDetail implements Serializable
{
    private static final long serialVersionUID = 769291091837899640L;
    /**
     * 规则编号
     */
    @TableId
    private Long id;
    /**
     * 积分类型
     */
    private String integralType;
    /**
     * 积分数量
     */
    private Integer count;
    /**
     * 积分说明
     */
    private String detail;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建者")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "更新者")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "是否删除")
    @TableLogic(value = "0" ,delval = "1")
    @TableField(fill = FieldFill.INSERT)
    private String delFlag;

}

